/**
 * 
 */
package ro.dta.idbi.ui.sql;

import java.util.EventObject;

import ro.dta.idbi.interfaces.ITransformationResult;

/**
 * Schema changed event, fired when a schema is changed by applying a
 * transformation over it
 * 
 * @author Tudor Dobrila
 * 
 */
public class SchemaChangedEvent extends EventObject {

	private static final long serialVersionUID = -3103627369072665944L;
	private final transient ITransformationResult result;

	/**
	 * SchemaChangedEvent class constructor
	 * 
	 * @param source
	 *            Object calling the event
	 * @param result
	 *            Transformation result
	 */
	public SchemaChangedEvent(final Object source, final ITransformationResult result) {
		super(source);
		this.result = result;
	}

	/**
	 * @return the oldName
	 */
	public ITransformationResult getResult() {
		return result;
	}

}
